<?php
namespace Foam\Model;

class Produit
{
    public $id_produit;
    public $libelle;
    public $id_categorie;
    public $id_famille;
    public $id_ssfamille;
    public $id_gamme;
    public $id_ssgamme;
    public $code;
    public $prix_base;
    public $presence_ctv;
    public $presence_louvre;
    public $livraison;
    public $prix_figaro;
    public $food_paper_cost;
    public $marge;
    public $id_production;
    public $target;
    public $serie_10;
    public $fiche_tek_hermes;
    public $fiche_tek_formation;
    public $certification_bio;
    public $presence_lactose;
    public $id_contenant;
    public $id_dlc;
    public $id_service;
    public $a_savoir;
    public $temps_presence;
    public $ingredients_etiquette;
    public $produit_complementaire;
    public $prix_printemps;
    public $tva_sp;
    public $tva_vae;
    public $prix_concession;
    public $volumes_estimes;
    public $image;
    public $actif;
    public $date_actif;
    
    public function exchangeArray($data)
    {
        $this->id_produit = (isset($data['id_produit'])) ? $data['id_produit'] : null;
        $this->libelle = (isset($data['libelle'])) ? $data['libelle'] : null;
        $this->id_categorie = (isset($data['id_categorie'])) ? $data['id_categorie'] : null;
        $this->id_famille = (isset($data['id_famille'])) ? $data['id_famille'] : null;
        $this->id_ssfamille = (isset($data['id_ssfamille'])) ? $data['id_ssfamille'] : null;
        $this->id_gamme = (isset($data['id_gamme'])) ? $data['id_gamme'] : null;
        $this->id_ssgamme = (isset($data['id_ssgamme'])) ? $data['id_ssgamme'] : null;
        $this->code = (isset($data['code'])) ? $data['code'] : null;
        $this->prix_base = (isset($data['prix_base'])) ? $data['prix_base'] : null;
        $this->presence_ctv = (isset($data['presence_ctv'])) ? $data['presence_ctv'] : null;
        $this->presence_louvre = (isset($data['presence_louvre'])) ? $data['presence_louvre'] : null;
        $this->livraison = (isset($data['livraison'])) ? $data['livraison'] : null;
        $this->prix_figaro = (isset($data['prix_figaro'])) ? $data['prix_figaro'] : null;
        $this->food_paper_cost = (isset($data['food_paper_cost'])) ? $data['food_paper_cost'] : null;
        $this->marge = (isset($data['marge'])) ? $data['marge'] : null;
        $this->id_production = (isset($data['id_production'])) ? $data['id_production'] : null;
        $this->target = (isset($data['target'])) ? $data['target'] : null;
        $this->serie_10 = (isset($data['serie_10'])) ? $data['serie_10'] : null;
        $this->fiche_tek_hermes = (isset($data['fiche_tek_hermes'])) ? $data['fiche_tek_hermes'] : null;
        $this->fiche_tek_formation = (isset($data['fiche_tek_formation'])) ? $data['fiche_tek_formation'] : null;
        $this->certification_bio = (isset($data['certification_bio'])) ? $data['certification_bio'] : null;
        $this->presence_lactose = (isset($data['presence_lactose'])) ? $data['presence_lactose'] : null;
        $this->id_contenant = (isset($data['id_contenant'])) ? $data['id_contenant'] : null;
        $this->id_dlc = (isset($data['id_dlc'])) ? $data['id_dlc'] : null;
        $this->id_service = (isset($data['id_service'])) ? $data['id_service'] : null;
        $this->a_savoir = (isset($data['a_savoir'])) ? $data['a_savoir'] : null;
        $this->temps_presence = (isset($data['temps_presence'])) ? $data['temps_presence'] : null;
        $this->ingredients_etiquette = (isset($data['ingredients_etiquette'])) ? $data['ingredients_etiquette'] : null;
        $this->produit_complementaire = (isset($data['produit_complementaire'])) ? $data['produit_complementaire'] : null;
        $this->prix_printemps = (isset($data['prix_printemps'])) ? $data['prix_printemps'] : null;
        $this->tva_sp = (isset($data['tva_sp'])) ? $data['tva_sp'] : null;
        $this->tva_vae = (isset($data['tva_vae'])) ? $data['tva_vae'] : null;
        $this->prix_concession = (isset($data['prix_concession'])) ? $data['prix_concession'] : null;
        $this->volumes_estimes = (isset($data['volumes_estimes'])) ? $data['volumes_estimes'] : null;
        $this->image = (isset($data['image'])) ? $data['image'] : null;
        $this->actif = (isset($data['actif'])) ? $data['actif'] : null;
        $this->date_actif = (isset($data['date_actif'])) ? $data['date_actif'] : null;
    }
}